package cn.aitrox.ry.service.anno.dao;

import cn.aitrox.ry.common.dao.BaseDao;
import cn.aitrox.ry.service.anno.entity.TaskSeriesEntity;
import cn.aitrox.ry.service.anno.po.task.TaskSeriesCountPo;

import java.util.List;

public interface TaskSeriesDao extends BaseDao<TaskSeriesEntity> {

    void batchSave(List<TaskSeriesEntity> list);

    void deleteByTaskId(Integer taskId);

    List<TaskSeriesCountPo> findTaskSeriesCountByTaskIds(List<Integer> taskIdList);

    List<TaskSeriesEntity> findByTaskId(Integer taskId);

    List<TaskSeriesEntity> findByTaskIdGroupId(Integer taskId, String groupId);

    Integer findGroupIdCountByTaskId(Integer taskId);

    TaskSeriesEntity findByTaskSeriesUid(Integer taskId, String seriesUid);
}
